package com.TestDemo;

public class TestFatherAndChild {
    public static void main(String[] args) {

        Father father = new Father();
        father.age = 45;
        father.name = "zzy";



        Father c1 = new Child01();
        c1.name = "zjz";
        c1.age = 22;


        c1.getName();
        c1.getAge();
        Child01 c2 = new Child01();
        c2.age = 22;
        c2.name = "zjz";
        c2.getDream();
        c2.getName();
        c2.getAge();

    }
}
